from django.urls import path, re_path
from .views import *
from user.wx_pay import wx_pay
from user.ali_pay import Ali,AliBack
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.static import serve

urlpatterns = [
    # *************//用户接口开始//*************
    # 定义超链接路由
    re_path('^static/upload/(?P<path>.*)$', serve, {'document_root': '/static/upload/'}),

    # 微信支付
    path('wx_pay/', wx_pay),

    # PayPal支付
    path('payment/', payment),

    # PayPal回调地址
    # path('pay_execute/', payment_execute),

    # 注册
    path('register/', Register.as_view()),

    # 登录
    path('login/', Login.as_view()),

    # 统计在线人数
    path('getsocket/', GetOnLines.as_view()),
    path('censusget/', CensusGet),

    # 汇率请求
    path('rate/', Rate),

    # 汇率请求
    # path('uuid/', get_snowflake_uuid),
    # *************//用户接口结束//*************
    # *************//三方支付//*************
    path('ali_pay/', Ali.as_view()),  # 支付页面
    path('ali_back/', AliBack.as_view()),  # 回调地址



]
